﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Employee.aspx.cs" Inherits="Employee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h3>Edit Employee Details</h3>
    <table>
        <tr>
            <td colspan="4">
                <asp:Label ID="lblMsg" runat="server" Font-Bold="True" Font-Underline="True" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>EmployeeID</td>
            <td>
                <asp:DropDownList ID="dpdnEmployeeID" runat="server" AutoPostBack="True" OnTextChanged="dpdnEmployeeID_SelectedIndexChanged" AppendDataBoundItems="True" >
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnEditRecord" runat="server" Text="Edit Record" OnClick="btnEditRecord_Click" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>First Name</td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" ReadOnly="True"></asp:TextBox></td>
            <td>Last Name</td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server" ReadOnly="True" ></asp:TextBox></td>
        </tr>
        <tr>
            <td>Address</td>
            <td colspan="3">
                <asp:TextBox ID="txtAddress" runat="server" Height="73px" Width="367px" Rows="6" TextMode="MultiLine" AutoPostBack="True" ReadOnly="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Phone Number</td>
            <td colspan="3">
                <asp:TextBox ID="txtPhoneNumber" runat="server" ReadOnly="True" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Email</td>
            <td colspan="3">
                <asp:TextBox ID="txtEmail" runat="server" ReadOnly="True" Width="224px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSaveChanges" runat="server" Text="Save Changes" OnClick="btnSaveChanges_Click" Enabled="False" />
            </td>
            <td>
             
                <asp:Button ID="btnClearAll" runat="server" Text="Clear All" OnClick="btnClearAll_Click" style="margin-bottom: 0px" />
             
            </td>
            <td></td><td></td>
        </tr>
    </table>
</asp:Content>

